<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>跳转提示</title>
    <link rel="stylesheet" href="/Public/css/dispatch_jump.css" />
</head>
<body>
    <div class="main-div">
        <div class="top-top">
            <img src="__PUBLIC__/img/Set-up.png">
            <span>提示信息！</span>
        </div>
        <div class="content">
            <div class="msg">
                <?php if(isset($message)) {?>
                <img src="__PUBLIC__/img/correct.png" class="icon">
                <p class="success"><?php echo($message); ?></p>
                <?php }else{?>
                <img src="__PUBLIC__/img/error.png" class="icon">
                <p class="error"><?php echo($error); ?></p>
                <?php }?>
            </div>
            <div class="link">
                <a id="href" href="<?php echo($jumpUrl); ?>">页面自动跳转</a> 等待时间： <b id="wait">1</b>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</html>